import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
import router from './router'
import store from './store'
import plugins from './plugins' // 自定义组件

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.use(ElementPlus)
.use(plugins)
.use(router)
.use(store)
.mount('#app')

// 返回根组件App实例而非应用实例
console.log('---app', app)
// 通过app.config配置应用级选项
app.config.errorHandler = (err) => {
	/* 处理错误 */
	// console.log('err'. err)
}